import request from '@/utils/request'

// 节水技术改造项目信息-列表
const saveWaterProjectList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterTechnology/getWaterTechnologyList',
    method: 'post',
    data: params
  })
}

// 详情
const saveWaterProjectDetails = function (wcid) {
  return request({
    url: '/zy-api/api/waterTechnology/getWaterTechnologyId',
    method: 'post',
    data: { wcid }
  })
}

// 新增
const addSaveWaterProject = function (params = {}) {
  return request({
    url: '/zy-api/api/waterTechnology/addWaterTechnology',
    method: 'post',
    data: params
  })
}

// 编辑
const editSaveWaterProject = function (params = {}) {
  return request({
    url: '/zy-api/api/waterTechnology/updWaterTechnology',
    method: 'post',
    data: params
  })
}

export {
  saveWaterProjectList,
  saveWaterProjectDetails,
  addSaveWaterProject,
  editSaveWaterProject
}